<?php
// 删除选中的商品，或者清空购物车，共用接口
include_once 'conn.php';
$arr = $_GET['arr'];
foreach ($arr as $value) {
    $sql=$db->query("DELETE FROM car WHERE car_id = '$value' ");
}
$db->query("ALTER TABLE car AUTO_INCREMENT = 1");
$db->close();
?>